const path =require('./pathConfig')
module.exports = {
   mode: 'development',
   devtool: 'cheap-module-source-map',
   devServer: {
      static:{
         directory: path.PUBLIC,
         serveIndex: true,
         publicPath: ['/api/']
      },
      port: 3000,
      hot: true,
      historyApiFallback: true, // https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback
   },
};
